pcr.tune(y, x, M = 10, maxk = 50, mat = NULL, ncores = 1, graph = TRUE)
alfapcr.tune
.
Tibshirani and Tibshirani (2009). A bias correction for the minimum error rate in cross-validation. The Annals of Applied Statistics, 3(1):822-829.
glmpcr.tune, glm.pcr, alfa.pcr, alfapcr.tune
library(MASS)
x <- fgl[, 2:9]
y <- fgl[, 1]
pcr.tune(y, x, M = 10, maxk = 50, mat = NULL, ncores = 1)
Run the code above in your browser using DataLab